home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / MUSIK01.422 < prev    next >
Text File  |  1993-04-07  |  4KB  |  114 lines

  1. Lets users see latest BBS news and BBS rules--my 1st mod
  2. Der Musikmann #490 @13495 7-=1Visiting Sysop7=-0
  3. Mon Mar 22 13:43:02 1993
  4. ┌────────────────────────────────────────────────────────────────────────────┐
  5. │ Mod Name    :  MUSIK01.MOD              Mod Author      :  Der Musikmann   │ 
  6. │ Difficulty  :  Block Read               SOLARnet        :  1@3476          │ 
  7. │ Date        :  3-20-93                  WWIV Tested On  :  4.22            │ 
  8. │ Description :  Let's user read BBS news:  New news, old news, and your BBS │ 
  9. │                rules, and/or more.  Very flexible.                         │ 
  10. └────────────────────────────────────────────────────────────────────────────┘ 
  11.  
  12. I was thinking one day (yeah, that's what that burning smell is).  I thought
  13. it would be neat for the users, who are interested, to be able to read a text
  14. file containing new BBS news, so I wrote this up.  Here's how it works:
  15. Since /N is already taken, I used /L (for Late Night and Mid Day BBS).  
  16. Anyway, they would type /L, then get a menu like this:
  17.  
  18. 1Late Night and Mid Day BBS News
  19.  
  20. 71:  Read Latest BBS News
  21. 72:  Read Older BBS News
  22. 73:  Read BBS Rules
  23. 7Q:  Quit
  24.  
  25. 2Q123:0
  26.  
  27. To do this, make a text file called NEWS.NEW containing your new news.  Make
  28. another called NEWS.OLD containing your old news.  Make another called 
  29. RULES.BBS containing your BBS rules.  These should all go in your GFILES 
  30. directory.  It's that easy.
  31.  
  32. If you want to do something else, just change some of the code.  Say, for 
  33. example, you want Fire Escape's list, you would do the following:
  34.  
  35. ch=onek("Q123"); change it to ch=onek("Q1234");
  36. add another prt line for it like:
  37. prt(7,"4:  Read Fire Escape's BBS List");
  38.  
  39. lastly, make a seperate CASE statement.  If you don't know how to do this, too
  40. bad.  I'm not going to try to explain how to do that.
  41.  
  42. Okay, here we go.  This is my first mod, so go easy on me.
  43.  
  44. DISCLAIMER:  If your computer locks up on you, your hard drive crashes, your
  45.              girlfriend leaves you, or your screen blows up in your face, IT 
  46.              ISN'T MY FAULT, so do step number 1!
  47.  
  48. STEP 1:  BACK UP YOUR SOURCE!!!!!!
  49.  
  50. STEP 2:  Load up BBS.C  In it, do the following:
  51.             
  52. Search for:  if (strcmp(s,"/E")==0)
  53. that's saying what to do if the user enters /E.  Under that, put this:
  54.  
  55.        if (strcmp(s,"/L")==0)
  56.          news();
  57.  
  58. STEP 3:  Load up MISCCMD.C  Do the following:
  59.  
  60. Search for:  void print_quest(blah blah blah----
  61. Insert this right BEFORE that void (block copy):
  62.  
  63. void news(void)
  64. {
  65.   int done;
  66.   char ch;
  67.  
  68.   outchr(12);
  69.  
  70.   done=0;
  71.   prt(1,"[YOUR BBS NAME] News");
  72.   nl();
  73.   nl();
  74.   prt(7,"1:  Read Latest BBS News");
  75.   nl();
  76.   prt(7,"2:  Read Older BBS News");
  77.   nl();
  78.   prt(7,"3:  Read BBS Rules");
  79.   nl();
  80.   prt(7,"Q:  Quit Back to BBS");
  81.   nl();
  82.   nl();
  83.   prt(2,"Q123:");
  84.   ch=onek("Q123");
  85.   switch(ch) {
  86.     case 'Q':
  87.       done=1;
  88.       break;
  89.     case '1':
  90.       printfile("NEWS.NEW");
  91.       done=1;
  92.       break;
  93.     case '2':
  94.       printfile("NEWS.OLD");
  95.       done=1;
  96.       break;
  97.     case '3':
  98.       printfile("RULES.BBS");
  99.       done=1;
  100.       break;
  101.   } while ((!done) && (!hangup));
  102. }
  103.  
  104. STEP 4:  Load up FCNS.H (sorry, but it's needed) and do the following:
  105.  
  106. Search for void list_users(void)
  107. after it, put this:
  108.  
  109. void news(void);
  110.  
  111. STEP 5:  Recompile it.  Incase you didn't notice, FCNS.H was affected.  Sorry.
  112.  
  113. If you can, E-Mail me and tell me you used this.  There are a lot of SOLARnet 
  114. boards.  Go to one and E-Mail me (1@3476).  Thanks.